package com.def;

public class Impl1_2 implements Interface1,Interface2{
    //多实现接口中有同名默认方法必须需要重写
    @Override
    public void print() {
        Interface1.super.print();//子类调用接口默认方法用super
        //Interface2.super.print();
    }

    public static void main(String[] args) {
        Impl1_2 i = new Impl1_2();
        i.print();
    }

}
